package com.gitee.chili.leisure.domain;

import com.gitee.chili.leisure.base.GenerateId;
import com.gitee.chili.leisure.enums.CurrencyToken;
import com.gitee.chili.leisure.enums.Status;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Currency
 *
 * @author week solider
 * @since 2020.09.01
 */
@Data
@Entity
@Accessors(chain = true)
@Table(name = "leisure_coins")
@EqualsAndHashCode(callSuper = true)
public class Currency extends GenerateId<Long> {

    /** 币种 */
    private CurrencyToken token;

    private String name;

    private Status status;

    /** 创建者 */
    private Long creator;

    public Currency() {
    }
}
